Fix context iterations for handle_configure_event()
authorCody Russell <bratsche@src.gnome.org>
Sun, 13 May 2007 18:44:27 +0000 (18:44 +0000)
committerCody Russell <bratsche@src.gnome.org>
Sun, 13 May 2007 18:44:27 +0000 (18:44 +0000)
svn path=/trunk/; revision=17834

ChangeLog
gdk/win32/gdkevents-win32.c

index 5c2514cb707e6294ac737573d174873d4902098b..20adee37acd9db144a52fe6e59843b979d254a67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-13  Cody Russell  <bratsche@gnome.org>
+
+       * gdk/win32/gdkevents-win32.c: Only do the configure event context
+       iteration under WM_WINDOWPOSCHANGED instead of inside
+       handle_configure_event().  This fixes a bug that prevented window
+       contents from being redrawn after gtk_window_resize(). (#436721)
+
 2007-05-12  Behdad Esfahbod  <behdad@gnome.org>
 
        * gdk/gdkdraw.c (gdk_draw_trapezoids): Fix wrong cairo path
index 1da4971d6d2179fdd7123c05a3a6c1f1c7f82dad..285b736cebca14ffb73e29643e842d11b1d818eb 100644 (file)
@@ -1778,8 +1778,6 @@ handle_configure_event (MSG       *msg,
 
       append_event (event);
     }
-
-  g_main_context_iteration (NULL, FALSE);
 }
 
 GdkRegion *
@@ -2907,7 +2905,8 @@ gdk_event_translate (MSG  *msg,
                ((GdkWindowObject *) window)->resize_count -= 1;
              
              handle_configure_event (msg, window);
-             
+             g_main_context_iteration (NULL, FALSE);
+
              /* Dispatch main loop - to realize resizes... */
              handle_stuff_while_moving_or_resizing ();